/**
 * Created by Tofik Mamishov on 12.10.2014.
 */
/**
 * Response handler
 * @type {{isError: isError}}
 */
var resHandler = {
    isError: function (err, res) {
        if (err) {
            res.send({ error: err });
            return true;
        } else {
            return false;
        }
    }
};

module.exports.resHandler = resHandler;